<header>
<div class="header_main">
    <div class="title logo">
        <h1><a href="{{route('Home')}}">旁观者</a></h1>
    </div>
    <div class="menu">
        <nav>
            <ul>
                <li class="selected" class="@if(Request::url() == route('Home'))select @endif"><a href="{{route('Home')
                }}">首页</a></li>
                <li class="@if(Request::url() == route('Home.15Finance.Show15Finance'))select @endif"><a href="{{route('Home.15Finance.Show15Finance')}}">15天融资</a></li>
                <li class="@if(Request::url() == route('Home.Investor.getInvestorPage'))select @endif"><a href="{{route('Home.Investor.getInvestorPage')}}">投资人</a></li>
                <li class="@if(Request::url() == route('Home.Project.getProjectPage'))select @endif"><a href="{{route('Home.Project.getProjectPage')}}">创业项目</a></li>
                <li><a href="javascript:;">投资者联盟</a></li>
            </ul>
        </nav>
    </div>
    <div class="search">
        <p><input type="text" placeholder="搜索"/><button></button></p>
    </div>
    <!--登录前 start -->
    <p class="login_before"><a href="{{route('Home.Auth.registerShow')}}">注册 </a> <a href="{{route('Home.Auth.loginShow')}}">/ 登录</a></p>
    <!--登录前 end -->

    <div class="user_menu hide_">
        <!--登陆后 -start- -->
        @if(Auth::check())
        <p class="user_face"><a href="{{route('Home.User.showUserCenter')}}"><img src="{{route('Api.Photo.Show',['id'=>Auth::user()->id])}}" /></a></p>
        @endif
        <!--登陆后 -end- -->

        <div class="menu_wrap">
            <ul>
                <!--登陆后 start -->
                @if(Auth::check())
                <li>
                    <dl>
                        <dt class="user_face"><a href="#"><img src="{{route('Api.Photo.Show',['id'=>Auth::user()->id])}}" /></a></dt>
                        <dd>
                            @if(!is_null(Auth::user()->userInfo))
                                {{Auth::user()->userInfo->realname}}
                            @else
                                @if($phone = Auth::user()->phone)
                                    {{$phone}}
                                @endif
                            @endif
                        </dd>
                    </dl>
                </li>
                @endif
                <!--登陆后 end -->

                <!--登陆前 start -->
                <!--pc端不显示-->
                <li class="user_action"><a href="{{route('Home.Auth.registerShow')}}">注册 </a>/<a href="{{route('Home.Auth.loginShow')}}"> 登录</a></li>
                <!--登陆 end -->

                <li class="user_center"><a href="#">创业项目</a></li>
                <li class="user_center"><a href="#">信息通知</a></li>
                <li class="user_center"><a href="#">认证投资人</a></li>
                <li class="user_center"><a href="#">开放平台</a></li>
                <li class="user_center"><a href="{{route('Home.Auth.signOut')}}">退出</a></li>
            </ul>
            <!--子导航移动端时出现-->
            <ul class="sub_menu">
                <li><a href="{{route('Home')}}">首页</a></li>
                <li><a href="{{route('Home.15Finance.Show15Finance')}}">15天融资</a></li>
                <li><a href="{{route('Home.Project.getProjectPage')}}">投资人</a></li>
                <li><a href="{{route('Home.Investor.getInvestorPage')}}">创业项目</a></li>
                <li><a href="activity.html">投资者联盟</a></li>
                <li><a href="{{route('Home.Auth.signOut')}}">退出</a></li>
            </ul>
            <em class="angle"></em>
        </div>

    </div>
    <div>
        <button class="more"></button>
    </div>
</div>
</header>